package com.hopu.v1.service.admin.classes.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hopu.v1.pojo.classes.CourseHomeworkRecord;
import com.hopu.v1.pojo.course.Course;
import com.hopu.v1.service.admin.classes.CourseHomeworkRecordService;
import com.hopu.v1.mapper.admin.classes.CourseHomeworkRecordMapper;
import com.hopu.v1.vo.CheckRecordVo;
import com.hopu.v1.vo.CoursehomeworkVo;
import com.hopu.v1.vo.UpWorkRecordVo;
import com.hopu.v1.vo.WorkRecordVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author xiaoxiong
* @description 针对表【t_course_homework_record(学生课程作业记录表)】的数据库操作Service实现
* @createDate 2024-09-29 16:53:39
*/
@Service
public class CourseHomeworkRecordServiceImpl extends ServiceImpl<CourseHomeworkRecordMapper, CourseHomeworkRecord>
    implements CourseHomeworkRecordService{
    @Resource
    private CourseHomeworkRecordMapper courseHomeworkRecordMapper;

    @Override
    public Page<CoursehomeworkVo> selectcourseWork(Page<CoursehomeworkVo> page, String classId) {
        return courseHomeworkRecordMapper.selectcourseWork(page, classId);
    }

    @Override
    public Page<WorkRecordVo> selectStudentWork(Page<WorkRecordVo> page, String classId,String courseName) {
        return courseHomeworkRecordMapper.selectStudentWork(page, classId, courseName);
    }

    @Override
    public List<CheckRecordVo> selectCheckRecord(String courseName, String studentId) {

        return courseHomeworkRecordMapper.selectCheckRecord(courseName, studentId);
    }

    @Override
    public List<Course> selectCourse(String classId,String pid) {
        return courseHomeworkRecordMapper.selectCourse(classId, pid);
    }


}




